import requests

class LoginAPI:
    # 类的构造函数
    def __init__(self):
        self.url_verify = "https://kdtx-test.itheima.net/api/captchaImage"
        self.url_login = "https://kdtx-test.itheima.net/api/login"

# uuid验证码
    def verify(self):
        return requests.get(url=self.url_verify)


# 登录
    def login(self,test_data):
        return requests.post(url=self.url_login,json=test_data)